package com.jshop.seckill.domain;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author muYan
 * @Version 1.0
 * @Since 2021-01-26
 */
@Table(name="user_address")
@Data
public class UserAddress {
    //地址id
    private int id;

    //用户id
    private int uid;

    //收货人姓名
    @Column(name = "real_name")
    private String contact;

    //联系电话
    @Column(name = "phone")
    private String mobile;

    //所在省份
    private String province;

    //所在市
    private String city;

    //区
    private String district;

    //详细地址
    @Column(name = "detail")
    private String detailAddress;

    //是否为默认地址
    private boolean isDefault;

    //是否删除
    private boolean idDel;

    //添加时间
    private Date addTime;
}
